package com.manager.devicemanager.service.impl;

import com.manager.devicemanager.entity.Realtimedevicestatus;
import com.manager.devicemanager.mapper.RealtimedevicestatusMapper;
import com.manager.devicemanager.service.IRealtimedevicestatusService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collection;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wpf
 * @since 2025-06-24
 */
@Service
public class RealtimedevicestatusServiceImpl extends ServiceImpl<RealtimedevicestatusMapper, Realtimedevicestatus> implements IRealtimedevicestatusService {

    @Autowired
    private RealtimedevicestatusMapper realtimedevicestatusMapper;


    @Override
    public Realtimedevicestatus getDataLastIc(String dataSourceName) {
        return realtimedevicestatusMapper.getDataLastIc();
    }

    @Override
    public int countDaysWithRecords(String dataSourceName) {
        return realtimedevicestatusMapper.countDaysWithRecords();
    }



}
